/*
 * @Author: your name
 * @Date: 2021-12-03 15:31:52
 * @LastEditTime: 2021-12-07 14:56:57
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \tms-obc-web\src\app\routes\order-management\order-management-routing.module.ts
 */
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { WaybillManagementAbnormalAppearComponent } from './components/abnormal-appear/abnormal-appear.component';
import { WaybillManagementBulkeDetailComponent } from './components/bulk-detail/bulk-detail.component';
import { WaybillManagementBulkComponent } from './components/bulk/bulk.component';
import { WaybillManagementVehicleDetailComponent } from './components/vehicle-detail/vehicle-detail.component';
import { WaybillManagementVehicleComponent } from './components/vehicle/vehicle.component';
import { WaybillManagementWaybillFeeComponent } from './components/waybill-fee/waybill-fee.component';

const routes: Routes = [
  {
    path: 'vehicle',
    component: WaybillManagementVehicleComponent,
    data: { guard: { ability: ['WAYBILL-VEHICLE-search'] } }
  },
  {
    path: 'vehicle/vehicle-detail/:id',
    component: WaybillManagementVehicleDetailComponent,
    data: { guard: { ability: ['WAYBILL-VEHICLE-DETAIL-wholeUnloadCarInfo'] } }
  },
  { path: 'bulk', component: WaybillManagementBulkComponent, data: { guard: { ability: ['WAYBILL-BULK-search'] } } },
  {
    path: 'bulk/bulk-detail/:id',
    component: WaybillManagementBulkeDetailComponent,
    data: { guard: { ability: ['WAYBILL-BULK-DETAIL-insertBulkStartCarInfo'] } }
  },
  {
    path: 'abnormal-appear',
    component: WaybillManagementAbnormalAppearComponent,
    data: { guard: { ability: ['WAYBILL-ABNORMAL-search'] } }
  },
  { path: 'waybill-fee', component: WaybillManagementWaybillFeeComponent, data: { guard: { ability: ['WAYBILL-FEE-search'] } } }
];
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class WaybillManagementRoutingModule {}
